// ***********************************************************************
// Assembly         : GeYiHome.Domain
// Author           : Mr.Fucker
// Created          : 03-17-2017
//
// Last Modified By : Mr.Fucker
// Last Modified On : 03-17-2017
// ***********************************************************************
// <copyright file="ExpertDoctorConfiguration.cs" company="">
//     Copyright ©  2017
// </copyright>
// <summary></summary>
// ***********************************************************************

using GeYiHome.Domain.Entities;

namespace GeYiHome.Db.DbMapping
{
    /// <summary>
    /// Class ExpertDoctorConfiguration.
    /// </summary>
    public class CostomConfiguration : EntityBaseTypeConfiguration<CustomEntity>
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="CostomConfiguration"/> class.
        /// </summary>
        public CostomConfiguration()
        {
            ToTable("t_custom");
            HasKey(x => x.Id);
            Property(x => x.Address).HasColumnName("address").HasMaxLength(2000);
            Property(x => x.Age).HasColumnName("age");
            Property(x => x.Gender).HasColumnName("gender");
            Property(x => x.Name).HasColumnName("name").HasMaxLength(100);
        }
    }
}
